import request from '@/utils/request'

// 查询概念题材列表
export function listTc(query) {
  return request({
    url: '/enterprise/tc/list',
    method: 'get',
    params: query
  })
}

// 查询概念题材详细
export function getTc(id) {
  return request({
    url: '/enterprise/tc/' + id,
    method: 'get'
  })
}

// 新增概念题材
export function addTc(data) {
  return request({
    url: '/enterprise/tc',
    method: 'post',
    data: data
  })
}

// 修改概念题材
export function updateTc(data) {
  return request({
    url: '/enterprise/tc',
    method: 'put',
    data: data
  })
}

// 删除概念题材
export function delTc(id) {
  return request({
    url: '/enterprise/tc/' + id,
    method: 'delete'
  })
}
